package com.zbmsg.user.bean;

import java.io.Serializable;

import io.netty.channel.Channel;

public class User implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	private String id;// id
	private String name;// 名称
	private String headUrl;// 头像
	private long lastTime;// 登录时间
	private Channel channel;// 用户连接
	private String groupId;// 当前所在房间的id

	public String getGroupId() {
		return groupId;
	}

	public void setGroupId(String groupId) {
		this.groupId = groupId;
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getHeadUrl() {
		return headUrl;
	}

	public void setHeadUrl(String headUrl) {
		this.headUrl = headUrl;
	}

	public long getLastTime() {
		return lastTime;
	}

	public void setLastTime(long lastTime) {
		this.lastTime = lastTime;
	}

	public Channel getChannel() {
		return channel;
	}

	public void setChannel(Channel channel) {
		this.channel = channel;
	}

	public static final class USER_STATE {
		public static final int OFF_LINE = 0;// 0 离线 记录最后一次发言,定时任务批量登出
		public static final int ON_LINE = 1;// 1 在线
	}
}
